dataSource {
	pooled = true
	driverClassName = "org.hsqldb.jdbcDriver"
	username = "sa"
	password = ""
}
hibernate {
    cache.use_second_level_cache=true
    cache.use_query_cache=true
    cache.provider_class='net.sf.ehcache.hibernate.EhCacheProvider'
}
// environment specific settings
environments {
	development {
		dataSource {
			dbCreate = "create-drop" // one of 'create', 'create-drop','update'
			url = "jdbc:hsqldb:mem:devDB"
		}
	}
	test {
		dataSource {
			dbCreate = "update"
			url = "jdbc:hsqldb:mem:testDb"
		}
	}
	production {
		dataSource {
			dbCreate = "update"
			url = "jdbc:hsqldb:file:prodDb;shutdown=true"
		}
	}
}






//// Para fazer Deploy...

//dataSource {
//    pooled = true
//    driverClassName = "com.mysql.jdbc.Driver"
//    username = "root"
//    password = ""
////    url = "jdbc:mysql://localhost:3306/afb?autoreconnect=true"
//    url = "jdbc:mysql://localhost/afb?autoreconnect=true"
////    dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
//
////properties {
////maxActive = 50
////maxIdle = 10
////initialSize = 10
////minEvictableIdleTimeMillis = 10000
////timeBetweenEvictionRunsMillis = 20000
////maxWait = 10000
////validationQuery = "/* ping */"
////testWhileIdle = true
////numTestsPerEvictionRun = 3
////testOnBorrow = true
////}
//
//
//}
//hibernate {
//    cache.use_second_level_cache=true
//    cache.use_query_cache=true
//    cache.provider_class='net.sf.ehcache.hibernate.EhCacheProvider'
//}
//// environment specific settings
//environments {
//
//        production {
//            dataSource {
////                dbCreate = "update"
//                dbCreate = "create"
//
//                url = "jdbc:mysql://localhost/afb"
//            }
//        }
//}